<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<tiles:insertTemplate template="admin-menu.jsp">
	<tiles:putAttribute name="body"><div>
<h1>Edycja sprzętu</h1>
<form action="editItem" method="post">
<s:hidden name="itemId"/>
<table>
	<tr>
		<td><s:textfield name="name" label="Nazwa broni" /></td>
	</tr>
	<tr>
		<td><label for="type">Typ</label><select name="type">
			<option value="SWORD2H" <s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@SWORD2H">selected="selected"</s:if>>Miecz 2h</option>
			<option value="SWORD1H"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@SWORD1H">selected="selected"</s:if>>Miecz 1h</option>
			<option value="SHIELD"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@SHIELD">selected="selected"</s:if>>Tarcza</option>
			<option value="ARMOR"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@ARMOR">selected="selected"</s:if>>Zbroja</option>
			<option value="WAND2H"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@WAND2H">selected="selected"</s:if>>Różdżka 2h</option>
			<option value="WAND1H"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@WAND1H">selected="selected"</s:if>>Różdżka 1h</option>
			<option value="CHARM"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@CHARM">selected="selected"</s:if>>Amulet</option>
			<option value="RING"<s:if test="type == @pl.un4giv3n.mightvsmagic.entity.ItemType@RING">selected="selected"</s:if>>Pierścień</option>
		</select></td>
	</tr>
	<tr>
		<td><s:textfield name="imgUrl" label="Url obrazka" /></td>
	</tr>
	<tr>
		<td><s:textfield name="minDef" label="Obrona min" /></td>
	</tr>
	<tr>
		<td><s:textfield name="maxDef" label="Obrona max" /></td>
	</tr>
	<tr>
		<td><s:textfield name="minDmg" label="Obrażenia min" /></td>
	</tr>
	<tr>
		<td><s:textfield name="maxDmg" label="Obrażenia max" /></td>
	</tr>
	<tr>
		<td><s:textfield name="price" label="Cena w złocie" /></td>
	</tr>
	<tr>
		<td><s:textfield name="premiumPrice" label="Cena w smoczych zebach" /></td>
	</tr>
	<tr>
		<td><s:textfield name="strengthMod" label="Modyfikator siły" /></td>
	</tr>
	<tr>
		<td><s:textfield name="staminaMod"
			label="Modyfikator wytrzymałości" /></td>
	</tr>
	<tr>
		<td><s:textfield name="manaMod" label="Modyfikator many" /></td>
	</tr>
	<tr>
		<td><s:textfield name="attackMod" label="Modyfikator ataku" /></td>
	</tr>
	<tr>
		<td><s:textfield name="defenceMod" label="Modyfikator uniku" />
		</td>
	</tr>
	<tr>
		<td><s:textfield name="speedMod" label="Modyfikator szybkości" />
		</td>
	</tr>
	<tr>
		<td><s:textfield name="strengthReq" label="Wymagana siła" /></td>
	</tr>
	<tr>
		<td><s:textfield name="staminaReq"
			label="Wymagana wytrzymałość" /></td>
	</tr>
	<tr>
		<td><s:textfield name="manaReq" label="Wymagana mana" /></td>
	</tr>
	<tr>
		<td><s:textfield name="attackReq" label="Wymagany atak" /></td>
	</tr>
	<tr>
		<td><s:textfield name="defenceReq" label="Wymagany unik" />
		</td>
	</tr>
	<tr>
		<td><s:textfield name="requiredFightExp" label="Wymagane doświadczenie bitewne" />
		</td>
	</tr>
	<tr>
		<td><s:textfield name="requiredMagicExp" label="Wymagane doświadczenie magiczne" />
		</td>
	</tr>
	<tr>
		<td><s:textfield name="requiredAnyExp" label="Wymagane doświadczenie (obojetnie jakie)" />
		</td>
	</tr>
	<tr>
		<td><s:submit value="Zapisz" /></td>
	</tr>
</table>
</form>
</div>
	</tiles:putAttribute>
</tiles:insertTemplate>